/* A says B is lying, B says C is lying, C says both A and B are lying 
 * Who are telling the truth, who are telling the lie
 */

#include<stdio.h>

int main(void){

  int a,b,c;
  for(a=1;a>=0;a--)
    for(b=1;b>=0;b--)
      for(c=1;c>=0;c--)
	if((a&&!b||!a&&b)&&(b&&!c||!b&&c)&&(c&&!a&&!b||!c&&a+b>0))
	  {
	    printf("A is %s.\n", a?"telling the truth":"telling the lie");
            printf("B is %s.\n", b?"telling the truth":"telling the lie");
            printf("C is %s.\n", c?"telling the truth":"telling the lie");
          }

  return 0;
}
